<%@page import="entities.ApplicationTemplate"%>
<%@page import="java.util.List"%>
<%@page import="helpers.PaginatorHelper"%>
<%@page import="helpers.UrlHelper"%>
<%
List<ApplicationTemplate> templates = (List<ApplicationTemplate>) request.getAttribute("templates");
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/admin/layouts/header.jsp" />

<script type="text/javascript" src="/admin/js/custom/application_template_list.js"></script>

<script type="text/javascript">
<!--
var server = "<%=UrlHelper.getServerUrl(request)%>";
//-->
</script>
		
					<!-- Content Area -->
                	<div id="da-content-area">
                		<jsp:include page="/admin/elements/message_box.jsp" />
                		
                		<div class="grid_4">
                        	<div class="da-panel">
                            	<div class="da-panel-header">
                                	<span class="da-panel-title">
                                        <img src="/admin/images/icons/color/layout.png" alt="" />
                                        Image Gallery with PhotoSwipe
                                    </span>
                                </div>
                                <div class="da-panel-content with-padding">
                                    <div class="da-gallery photoSwipe">
                                        <ul>
                                        	<% for (int i = 0; i < templates.size(); i++) { %>
                                            <li>
                                                <a href="#abc" class="touchTouch">
                                                    <img src="/admin/images/9.jpg" alt="" />
                                                </a>
                                                <span class="da-gallery-hover">
                                                    <ul>
                                                    	<li class="da-gallery-download"><a href="/admin/apptemplate/download/<%=templates.get(i).getId()%>">Download</a></li>
                                                        <li class="da-gallery-update"><a href="/admin/apptemplate/edit/<%=templates.get(i).getId()%>">Edit</a></li>
                                                        <li class="da-gallery-delete"><a href="/admin/apptemplate/delete/<%=templates.get(i).getId()%>">Delete</a></li>
                                                    </ul>
                                                </span>
                                            </li>
                                            <% } %>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                	</div>

<jsp:include page="/admin/layouts/footer.jsp" />